package com.woniu.apartment.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房间床位对象 tb_bed
 *
 * @author yy
 * @date 2023-04-03
 */
@ApiModel(value = "Bed", description = "房间床位")
public class Bed implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 床编号 */
    @Excel(name = "床编号")
    @ApiModelProperty("床编号")
    private String bedNo;

    /** 房间主键 */
    @Excel(name = "房间主键")
    @ApiModelProperty("房间主键")
    private Long roomId;

    /** 1-空闲 2-已出租 3-锁定待付款 */
    @Excel(name = "1-空闲 2-已出租 3-锁定待付款")
    @ApiModelProperty("1-空闲 2-已出租 3-锁定待付款")
    private Long status;

    /** 租金 */
    @Excel(name = "租金")
    @ApiModelProperty("租金")
    private BigDecimal rent;

    /** 货币种类 */
    @Excel(name = "货币种类")
    @ApiModelProperty("货币种类")
    private String currency;

    /** 租期终止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租期终止日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("租期终止日期")
    private Date rentEndDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBedNo(String bedNo)
    {
        this.bedNo = bedNo;
    }

    public String getBedNo()
    {
        return bedNo;
    }
    public void setRoomId(Long roomId)
    {
        this.roomId = roomId;
    }

    public Long getRoomId()
    {
        return roomId;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRent(BigDecimal rent)
    {
        this.rent = rent;
    }

    public BigDecimal getRent()
    {
        return rent;
    }
    public void setCurrency(String currency)
    {
        this.currency = currency;
    }

    public String getCurrency()
    {
        return currency;
    }
    public void setRentEndDate(Date rentEndDate)
    {
        this.rentEndDate = rentEndDate;
    }

    public Date getRentEndDate()
    {
        return rentEndDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bedNo", getBedNo())
            .append("roomId", getRoomId())
            .append("status", getStatus())
            .append("rent", getRent())
            .append("currency", getCurrency())
            .append("rentEndDate", getRentEndDate())
            .toString();
    }
}
